home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / IDL / CmdDefs.idl < prev    next >
Encoding:
Text File  |  1997-02-13  |  2.4 KB  |  69 lines  |  [TEXT/MPS ]

  1. //#    Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  2.  
  3. #ifndef _CMDDEFS_
  4. #define _CMDDEFS_
  5.  
  6. #ifndef _ODTYPESM_
  7. #include "ODTypesM.idl"
  8. #endif
  9.  
  10. // The C/C++ output for this file can be compiled by C/C++ and Rez, since
  11. // It contains #defines for the command numbers of the standard menu items
  12. // of the document shell
  13.  
  14. // Command numbers below 20000 are reserved for the shell or container apps.
  15. // Command numbers above 20000 are reserved for parts.
  16.  
  17. #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
  18. #pragma somemittypes on
  19. #endif
  20.  
  21. const ODMenuID     kODAppleMenuID              = 255;
  22. const ODMenuID     kODDocumentMenuID          = 256;
  23. const ODMenuID       kODEditMenuID            = 257;
  24.  
  25. const ODCommandID  kODCommandShellFirst     = 1000;
  26. const ODCommandID  kODCommandShellLast       = 20000;
  27.  
  28. const ODCommandID  kODCommandAppleMenu      = 1000;
  29. const ODCommandID  kODCommandAbout             = 1001;
  30.  
  31. const ODCommandID  kODCommandDocumentMenu   = 2000;
  32. const ODCommandID  kODCommandNew              = 2001;
  33. const ODCommandID  kODCommandOpen              = 2002;
  34. const ODCommandID  kODCommandOpenDocument   = 2003;
  35. const ODCommandID  kODCommandInsert            = 2004;
  36. const ODCommandID  kODCommandClose            = 2005;
  37. const ODCommandID  kODCommandDeleteDocument    = 2006;
  38. const ODCommandID  kODCommandSave              = 2007;
  39. const ODCommandID  kODCommandSaveACopy      = 2008;
  40. const ODCommandID  kODCommandRevert            = 2009;
  41. const ODCommandID  kODCommandDraft            = 2010;
  42. const ODCommandID  kODCommandDocumentInfo   = 2011;
  43. const ODCommandID  kODCommandPageSetup      = 2012;
  44. const ODCommandID  kODCommandPrint            = 2013;
  45.  
  46. const ODCommandID  kODCommandEditMenu         = 3000;
  47. const ODCommandID  kODCommandUndo              = 3001;
  48. const ODCommandID  kODCommandRedo              = 3002;
  49. const ODCommandID  kODCommandCut              = 3003;
  50. const ODCommandID  kODCommandCopy              = 3004;
  51. const ODCommandID  kODCommandPaste            = 3005;
  52. const ODCommandID  kODCommandPasteAs        = 3006;
  53. const ODCommandID  kODCommandClear            = 3007;
  54. const ODCommandID  kODCommandSelectAll      = 3008;
  55. const ODCommandID  kODCommandGetPartInfo    = 3009;
  56. const ODCommandID  kODCommandPreferences    = 3010;
  57. const ODCommandID  kODCommandViewAsWin      = 3011;
  58.  
  59. #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
  60. #pragma somemittypes off
  61. #endif
  62.  
  63. module OpenDoc_Commands 
  64. {
  65.     const string OpenDoc_Commands_Version = "1.0.";
  66. };
  67.  
  68. #endif  //# _CMDDEFS_
  69.